package org.will.spi.dubbo;

import com.alibaba.dubbo.common.URL;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ProtocolWrapper implements Protocol{

    private Protocol protocol;

    public ProtocolWrapper(Protocol protocol) {
        this.protocol = protocol;
    }

    @Override
    public String getName(URL url) {
        log.info("protocol AOP");
        return this.protocol.getName(url);
    }
}
